/**
 * @ClassName LC1893
 * @Author ykx
 * @Date 2024/3/20 16:35
 * @Version 1.0
 */
public class LC1893 {
    public boolean isCovered(int[][] ranges, int left, int right) {
        for (int i = left; i <= right; i++) {
            boolean flag = false;
            for (int[] range : ranges) {
                if (range[0] <= i && range[1] >= i) {
                    flag = true;
                    break;
                }
            }
            if (!flag) {
                return false;
            }
        }
        return true;
    }
}
